#include "DTD_Complex.h"

using namespace std;

DTD_Complex::DTD_Complex( vector<DTD_Normal *> * contents )
{
	this->contents = contents;
}

DTD_Complex::~DTD_Complex()
{
	// Suppression des attributs.
    while(!contents->empty())
    {
        delete contents->back();
        contents->pop_back();
    }

    delete contents;
}

void DTD_Complex::addContent( DTD_Normal * content )
{
	contents->push_back( content );
}

string DTD_Complex::toString(){
	return " ";

}

//DTD_Complex::DTD_Complex( char card, vector<DTD_Normal *> * contents ) : DTD_Normal( card )
//{
//	this->contents = contents;
//}
